dict python用法 和 None 比較要使用 is 和 is not,儘管在正常情況下和 == 沒有啥差別,但這已經是大家習慣的用法了,以下來自 PEP8。 Comparisons to singletons like None should always be done with is or is not, never the equality operators 相關軟體 Python 下載 Python是一款簡單強大又好用的動態語言,在國外已經流行了十幾年。Python擁有更高的時效性,可以讓您的開發週期更短,並讓您的生產力提升。 簡單易學,並有內建的各種現成的模組 ... 了解更多 »